Python Breakpoints
Sublime Text plugin to set Python breakpoints
Details
Installs
- Total 66K
- Win 37K
- Mac 13K
- Linux 16K
Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 3 | 3 | 5 | 3 | 1 | 4 | 2 | 4 | 4 | 0 | 0 | 2 | 3 | 0 | 1 | 5 | 3 | 4 | 4 | 5 | 2 | 1 | 1 | 3 | 2 | 2 | 1 | 3 | 1 | 3 | 3 | 1 | 5 | 4 | 1 | 1 | 4 | 0 | 0 | 0 | 0 | 0 | 3 | 4 | 4 |
Mac | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 2 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 |
Linux | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 1 | 0 | 0 | 1 | 3 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 3 | 1 | 1 | 0 | 1 | 2 | 1 | 1 | 1 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 1 | 1 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text Python Breakpoints
This is a Sublime Text plugin allowing to quickly set Python breakpoints by injecting set_trace() call of pdb or other debugger of your choice.
Features
- breakpoint color highlighting, gutter icons
- auto indentation, auto save on toggle (off by default, configurable)
- your source file stores all breakpoints; plugin detects and recreates them on next load
- support for user comments to help navigate among many breakpoints
Screenshot
Install
Through Package Control (recommended):
Command Palette
> Package Control: Install Package
> Python Breakpoints
From GitHub: Clone this repository into your version/platform specific Packages directory. Example for Mac and ST2 (note the space in the target directory name):
cd ~/Library/Application Support/Sublime Text 2/Packages
git clone https://github.com/obormot/PythonBreakpoints 'Python Breakpoints'
Usage
Command Palette
> Python Breakpoints: ...
Toggle
a breakpoint at current line (orctrl+shift+b
)Goto
a selected breakpoint (orctrl+shift+g
, orMenu
>Goto
>Goto Python Breakpoint...
)Clear All
breakpoints in current file (orMenu
>Tools
>Breakpoints
>Clear All Python Breakpoints
)
If one or multiple lines of code are selected, the Toggle command will wrap the selected lines in a try-except statement and a new breakpoint will be added under the except: section.
Settings
Preferences
> Package Settings
> Python Breakpoints
Caveats
- only space indentation is supported
- in some code fragments the plugin may incorrectly indent the breakpoint; in such cases just use Indent/Unindent keyboard shortcuts to move it into desired position